<div class="col-md-12">

	<div class="x_panel" ng-controller="ctl_wb_location">
		<div class="x_title">
			<h2>IMEI:</h2>
			<div class="col-md-3 col-sm-3 col-xs-6 form-group pull-left top_search" style="height:10px;">
				<div class="input-group">
					<input class="form-control" placeholder="输入imei" type="text" ng-model="imei" ng-disabled="show_map">
					<span class="input-group-btn">
                                    <button class="btn btn-default" type="button" ng-click="searchRecords()" ng-disabled="show_map">搜索</button>
                                </span>
				</div>
			</div>
			<div class="col-md-2 col-sm-2 col-xs-2 form-group pull-left" style="height:10px;">
				<select class="form-control" ng-model="num" ng-options="n for n in numlist" ng-disabled="show_map">
					<option value="" disabled>每页显示</option>
				</select>
			</div>
			<div class="col-md-2 col-sm-2 col-xs-2 form-group pull-left" style="height:10px">
				<a class="btn btn-default" ng-click="show_map = !show_map" ng-disabled="!has_data"><i class="fa fa-exchange"></i></a>
			</div>
			<!--
			<ul class="nav navbar-right panel_toolbox">
				<li class="pull-right"><a class="close-link"><i class="fa fa-close"></i></a></li>
				<li class="pull-right"><a class="collapse-link"><i class="fa fa-chevron-up"></i></a></li>
			</ul>
			-->
			<div class="clearfix"></div>
		</div>
		<div class="x_content" ng-show="!show_map">
			<!-- content starts here -->
			<table class="table table-hover jambo_table">
				<thead>
					<tr>
						<th>定位地址</th>
						<th>经度</th>
						<th>纬度</th>
						<th>定位半径</th>
						<th>时间</th>
						<th>使用GPS</th>
						<th>地图显示</th>
					</tr>
				</thead>
				<tbody>
					<tr ng-repeat="data in datas" ng-model="datas">
						<td>{[data.address]}</td>
						<td>{[data.lon]}</td>
						<td>{[data.lat]}</td>
						<td>{[data.radius]}</td>
						<td>{[data.time]}</td>
						<td>{[data.useGPS?'是':'否']}</td>
						<td><a class="btn btn-default" ng-click="specifyMarker(datas.indexOf(data))"><i class="fa fa-exchange"></i></a></td>
					</tr>
				</tbody>
			</table>
			<div id="example_info" class="dataTables_info">总页数 - {[totalPage]}</div>
			<div class="dataTables_paginate paging_full_numbers">
				<a class="first paginate_button paginate_button_disabled" ng-show="pagelist.length && pagelist[0] != 1" ng-click="jumpPage(1)">第一页</a>
				<a class="previous paginate_button paginate_button_disabled" ng-show="current_page != 1" ng-click="jumpPage(current_page-1)">上一页</a>
				<span>
                                <a ng-repeat="page in pagelist" ng-class="{true:'paginate_active',false:'paginate_button'}[current_page==page]" ng-click="jumpPage(page)">{[page]}</a>
                            </span>
				<a class="next paginate_button" ng-show="pagelist.length && current_page != totalPage" ng-click="jumpPage(current_page+1)">下一页</a>
				<a class="last paginate_button" ng-show="pagelist.length && pagelist[pagelist.length-1] != totalPage" ng-click="jumpPage(totalPage)">最后一页</a>
			</div>
			<!-- content ends here -->
		</div>
        <div class="x_content">
            <div class="AMapArea" ng-show="show_map">
                <div id="{[AMapId]}"></div>
                {[initAMap()]}
				{[showSpecifyMarker()]}
            </div>
        </div>
	</div>
</div>
